using OrbitOne.Elmah.Data;

namespace OrbitOne.Elmah.Logic
{
    /// <summary>
    /// Represents the Url error count
    /// </summary>
    public class UrlErrorCount
    {
        #region Properties
        /// <summary>
        /// Gets the <code>OrbitOneElmahErrorEntity</code>
        /// </summary>
        public ELMAH_Error Error { get; private set; }
        /// <summary>
        /// Gets the Url
        /// </summary>
        public string Url { get; private set; }
        /// <summary>
        /// Gets the error count
        /// </summary>
        public int ErrorCount { get; private set; } 
        #endregion

        #region Constructor
        /// <summary>
        /// Creates a UrlErrorCount.
        /// </summary>
        /// <param name="error"></param>
        /// <param name="url"></param>
        /// <param name="errorCount"></param>
        public UrlErrorCount(ELMAH_Error error, string url, int errorCount)
        {
            this.Error = error;
            this.Url = url;
            this.ErrorCount = errorCount;
        } 
        #endregion
    }
}